import request from '@/utils/request'

// 查询遗留问题列表
export function listLeftProblem(query) {
  return request({
    url: '/workOrder/leftProblem/list',
    method: 'get',
    params: query
  })
}

// 查询遗留问题详细
export function getLeftProblem(id) {
  return request({
    url: '/workOrder/leftProblem/' + id,
    method: 'get'
  })
}

// 新增遗留问题
export function addLeftProblem(data) {
  return request({
    url: '/workOrder/leftProblem',
    method: 'post',
    data: data
  })
}

// 修改遗留问题
export function updateLeftProblem(data) {
  return request({
    url: '/workOrder/leftProblem',
    method: 'put',
    data: data
  })
}

// 删除遗留问题
export function delLeftProblem(id) {
  return request({
    url: '/workOrder/leftProblem/' + id,
    method: 'delete'
  })
}
